package cn.gson.boot.model.pojos;

import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.List;
import java.util.Objects;

/*交付计划*/

@Entity
public class Jiaofujihua {
    private int jjId;//交付计划id
    private Kehu kH;//客户id
    private BigDecimal jjMoney;//交付计划金额
    private Timestamp jjTime;//交付计划时间
    private String jjSye;//交计所有者
    private String jjYaoqiu;//交计要求
    private String jjTiaojian;//交计条件
    private String jjTixing;//交计是否提醒
    private String jjBeizhu;//交计备注
    private Dingdan dingdanByDdId;//订单对象（订单id）

    private Integer jjYs;//判断交付计划是否删除

    private String jjHao;//交计号

    public List<Dingdanxiangqing> jjDingDanxqList;//订单详情集合


    @Basic
    @Column(name = "jj_hao")
    public String getJjHao() {
        return jjHao;
    }

    public void setJjHao(String jjHao) {
        this.jjHao = jjHao;
    }

    @Basic
    @Column(name = "jj_ys")
    public Integer getJjYs() {
        return jjYs;
    }

    public void setJjYs(Integer jjYs) {
        this.jjYs = jjYs;
    }

    @Id
    @Column(name = "jj_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY,generator = "seq")
    public int getJjId() {
        return jjId;
    }

    public void setJjId(int jjId) {
        this.jjId = jjId;
    }


    @ManyToOne
    @JoinColumn(name = "k_id", referencedColumnName = "k_id")
    public Kehu getkH() {
        return kH;
    }

    public void setkH(Kehu kH) {
        this.kH = kH;
    }

    @Basic
    @Column(name = "jj_money", nullable = true, precision = 2)
    public BigDecimal getJjMoney() {
        return jjMoney;
    }

    public void setJjMoney(BigDecimal jjMoney) {
        this.jjMoney = jjMoney;
    }

    @Basic
    @Column(name = "jj_time", nullable = false)
    public Timestamp getJjTime() {
        return jjTime;
    }

    public void setJjTime(Timestamp jjTime) {
        this.jjTime = jjTime;
    }

    @Basic
    @Column(name = "jj_sye", nullable = true, length = 200)
    public String getJjSye() {
        return jjSye;
    }

    public void setJjSye(String jjSye) {
        this.jjSye = jjSye;
    }

    @Basic
    @Column(name = "jj_yaoqiu", nullable = true, length = 200)
    public String getJjYaoqiu() {
        return jjYaoqiu;
    }

    public void setJjYaoqiu(String jjYaoqiu) {
        this.jjYaoqiu = jjYaoqiu;
    }

    @Basic
    @Column(name = "jj_tiaojian", nullable = true, length = 200)
    public String getJjTiaojian() {
        return jjTiaojian;
    }

    public void setJjTiaojian(String jjTiaojian) {
        this.jjTiaojian = jjTiaojian;
    }

    @Basic
    @Column(name = "jj_tixing", nullable = true, precision = 0)
    public String getJjTixing() {
        return jjTixing;
    }

    public void setJjTixing(String jjTixing) {
        this.jjTixing = jjTixing;
    }

    @Basic
    @Column(name = "jj_beizhu", nullable = true, length = 200)
    public String getJjBeizhu() {
        return jjBeizhu;
    }

    public void setJjBeizhu(String jjBeizhu) {
        this.jjBeizhu = jjBeizhu;
    }



    @ManyToOne
    @JoinColumn(name = "dd_id", referencedColumnName = "dd_id")
    public Dingdan getDingdanByDdId() {
        return dingdanByDdId;
    }

    public void setDingdanByDdId(Dingdan dingdanByDdId) {
        this.dingdanByDdId = dingdanByDdId;
    }
}
